package com.gcc.notes.securenotes.service;

import com.gcc.notes.securenotes.model.Note;
import org.aspectj.weaver.ast.Not;

import java.util.List;
import java.util.Optional;

public interface NoteService {

    List<Note> findAllUserNotes(String username);

    Optional<Note> findByIdAndOwner(Long id, String username);

    Note saveNewNote(Note note, String username);

    Note updateNote(Note note, String username);

    void deleteNote(Long id, String username);
}
